package com.example.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.domain.Review;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.domain.model.ReviewDTO;

/**
* @author Administrator
* @description 针对表【review】的数据库操作Service
* @createDate 2023-03-20 09:46:32
*/
public interface ReviewService extends IService<Review> {

    IPage<ReviewDTO> getMyList(String userId, Page<ReviewDTO> page);

    IPage<ReviewDTO> getList(String movieId, Page<ReviewDTO> page);

    IPage<ReviewDTO> getAllList(Page<ReviewDTO> page);


    Review getById(String id);
    boolean save(Review review,String userId);
    boolean update(String id,Review review);
    boolean delete(String id);
}
